package org.trebert.j2ee;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class ControllerServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException{
		String site = request.getParameter("site");
		RequestDispatcher rd;
		if (site!=null){
			if (site=="zaehlbean"){
				rd = request.getRequestDispatcher("zaehlBean.jsp");
			}
		}
		rd = request.getRequestDispatcher("hallo.jsp");
		rd.forward(request, response);
	}
}
